﻿namespace Web.Control.Member.User
{
    using System;
    using System.Data;
    using System.Drawing;
    using System.Web;
    using System.Web.Security;
    using System.Web.UI.WebControls;
    using System.Web.UI.HtmlControls;
    using System.Text.RegularExpressions;
    using Lx.Web.Common.UI;
    using Lx.Web.Common.ControlsUI;
    using System.Collections;

    public class SendConfirmMail : BaseControl
    {

        protected string nickname;
        protected override void OnLoad(EventArgs e)
        {
            if (HttpContext.Current.User.Identity.Name == "")
            {
                Page.Response.Redirect(LoginHost + "/User/login.htm?ReturnUrl=" + Page.Request.Url.AbsoluteUri);
            }
            if (!Page.IsPostBack)
            {
                if (Page.Request["NickName"] != null)
                {
                    nickname = Page.Request["NickName"].ToString();
                }
                else
                {
                    Page.Response.End();
                }
            }
            Response.Write("<script>var memberno='" + HttpContext.Current.User.Identity.Name + "';</script>");
            base.OnLoad(e);
        }
    }
}
